package com.ruoyi.app.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.repairs.domain.CrmRepairsRecord;
import com.ruoyi.repairs.service.ICrmRepairsRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 维修记录Controller
 * 
 * @author hct
 * @date 2022-02-11
 */
@RestController
@RequestMapping("/app/repairsrecord")
public class AppRepairsRecordController extends BaseController
{
    @Autowired
    private ICrmRepairsRecordService crmRepairsRecordService;

    /**
     * 查询维修记录列表
     */
    @GetMapping("/list")
    public TableDataInfo list(CrmRepairsRecord crmRepairsRecord)
    {
        startPage();
        List<CrmRepairsRecord> list = crmRepairsRecordService.selectCrmRepairsRecordList(crmRepairsRecord);
        return getDataTable(list);
    }

}
